package com.winshare.saleAssistant.domain.dto.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@ApiModel
public class ProductCategoryCreateDTO {

    @NotBlank(message = "产品分类名称不可以为空")
    @Length(min = 1, max = 80, message = "产品分类名称长度需要在1-80个字之间")
    @ApiModelProperty(value = "机构编码")
    private String categoryName;

    @ApiModelProperty(value = "产品分类描述")
    private String categoryDesc;

    public ProductCategoryCreateDTO() {
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getCategoryDesc() {
        return categoryDesc;
    }

    public void setCategoryDesc(String categoryDesc) {
        this.categoryDesc = categoryDesc;
    }
}
